package com.tt.fashionWebSite.domain;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by isoft-work 5 on 11/19/14.
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "tu_van")
@NamedQueries({
//      @NamedQuery(name = "User.searchAllUser", query = "SELECT u FROM User u") ,
})
public class TuVan implements Serializable {
   @Id
   @Column(name = "MA_TUVAN")
   private String maTuVan;

   @ManyToOne
   @JoinColumn(name = "MA_TV")
   private ThongTinThanhVien thongTinThanhVien;

   @ManyToOne
   @JoinColumn(name = "MA_LUAT")
   private Luat luat;

   @Column(name = "TAP_LUAT_TUVAN")
   private String tapLuatTuVan;

   public String getMaTuVan() {
      return maTuVan;
   }

   public void setMaTuVan(String maTuVan) {
      this.maTuVan = maTuVan;
   }

   public ThongTinThanhVien getThongTinThanhVien() {
      return thongTinThanhVien;
   }

   public void setThongTinThanhVien(ThongTinThanhVien thongTinThanhVien) {
      this.thongTinThanhVien = thongTinThanhVien;
   }

   public Luat getLuat() {
      return luat;
   }

   public void setLuat(Luat luat) {
      this.luat = luat;
   }

   public String getTapLuatTuVan() {
      return tapLuatTuVan;
   }

   public void setTapLuatTuVan(String tapLuatTuVan) {
      this.tapLuatTuVan = tapLuatTuVan;
   }
}
